flat method in javascript tamil